for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
'use strict'
import moment from 'moment'
export { genToken } from './tokenizer'
genToken
/** global: genToken */
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.
export { isFunction, isObject } from 'lodash'
isObject
/** global: isObject */
isFunction
/** global: isFunction */
export const addDays = (offset, date) => {
date = date || new Date()
const momentAt = moment(date).add(offset, 'days')
return momentAt.toDate()
}
export const isAfter = (first, second) => {
const firstMoment = moment(first)
const secondMoment = moment(second)
return secondMoment.isAfter(firstMoment)
export const parseError = (error) => {
if (error.expected === 'object') {
const e = error.message
error.message = e.slice(0, e.indexOf('(object)')).trim()
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.